import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import SignIn from '@/pages/User/SignIn'
import SignUp from '@/pages/User/SignUp'
import Task from '@/pages/Task/List'
import TaskList from '@/pages/Task/TaskList'
import Profile from "@/pages/User/Profile";

import TagList from '@/pages/Tag/List'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      name: "SignIn",
      component: SignIn
    },
    {
      path: "/user",
      name: "user",
      component: Profile
    },
    {
      path: "/home",
      name: "home",
      component: Home
    },
    {
      path: "/task",
      name: "task-all",
      component: Task,
      children: [
        {
          path: "today",
          name: "task-today",
          component: TaskList
        }
      ]
    },
    {
      path: '/tags',
      name: 'tags',
      component: TagList
    }
  ]
});
